package com.maomao.maomaochong_i.personalPackage;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import com.maomao.maomaochong_i.R;
import com.maomao.maomaochong_i.application.MyApplication;

/**
 * Created by maomao on 2017/5/17.
 */

public class ForgetPasswordAgain extends AppCompatActivity {
    private EditText password1, password2;
    private Button notarize;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.personal_forget_password_again);
        MyApplication.getInstance().addActivity(this);

        password1 = (EditText) findViewById(R.id.editText1);
        password2 = (EditText) findViewById(R.id.editText2);
        notarize = (Button)findViewById(R.id.notarize);

        notarize.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(ForgetPasswordAgain.this,"密码修改成功,请登录账户",Toast.LENGTH_SHORT).show();
                Intent intent = new Intent();
                intent.setClass(ForgetPasswordAgain.this,Login.class);
                startActivity(intent);
            }
        });
    }
}
